Webpart can be seen as a plug-in of SharePoint and a component used to implement specific functions. This article describes how to develop and deploy a simple webpart.
1. DevelopmentCreate a project and select the SharePoint webpa template. The project name is simplecalculator.
You can see that Microsoft is automatically added to solution manager. sharePoint reference; added *. SNK ,*. CS ,*. webpart ,*. XML and other files, we will change it to
This is actually not a complete network of worms, just pick up a social network, and then get the adjacency matrix, and the corresponding avatar and other information.
The main steps:
1, pick up the information
2, regular match
Regular expressions are mainly for reference:
http://deerchao.net/tutorials/regex/regex.htm
Picking up information is WebClient this method is more concise than the HttpRequest HttpResponse.
The difficulty is to overcome the site's authentication mechanis
function Haswebp () { //view cookie, if not, make the following logical var img = new Image (); Img.onload = Handlesupport; Img.onerror = Handlenotsupport; IMG.SRC = ' data:image/webp;base64,uklgrkoaaabxrujqvla4waoaaaaqaaaaaaaaaaaaquxqsasaaaabbxareyii/ gcaaabwudgggaaaadabaj0bkgeaaqababwlpaadcad+/gbqaa== '; Otherwise execute handlesupport or handlenotsupport}function handlesupport ( ' swebp ', ' true ', 2592000) according to the cookie; /30 days expires}function Handlenotsupp
Python2Download and install Python 2.7.11 64bit from Python ' s official site (https://www.python.org/ftp/python/2.7.11/ Python-2.7.11.amd64.msi). Please select Add Python Path during installation.Download NumPy, SciPy, Matplotlib, Scikit-image, h5py from unofficial Windows Binaries for Python Extension Packages WEBPA GE at (http://www.lfd.uci.edu/~gohlke/pythonlibs/). Remember to download correct version (2.7) and Architecture (64-bit).Additionally,
auxiliary tool is webpack-dev-server , it mainly provides two functions: one is to provide the server service for the static file, the second is the automatic refresh and the hot substitution (HMR). So it is possible to achieve the same functionality as Gulp, just add it $ webpack-dev-server later --inline --hot . It is important to note that --inline there is an automatic refresh, and that there is a inline:true in the Devserver property in the second section that needs to be configured, but a
overall bandwidth decreased by nearly 50%.WebP format compatibility caseWhile the use of WebP brings a lot of benefits to real-world applications, and Google Chrome and Opera browsers, as well as many other tools and repositories, support WebP, but so far not all browsers support WebP, IE, Edge, Firefox, Safari WebP format is not supported.WebP Support situationHow to turn on WebP picture formatWebP with excellent image compression performance, as well as both lossless and lossy compression alg
code available. New Webpack.
Defineplugin ({' process.env ': {NODE_ENV:JSON.stringify (' production ')//Define Production Environment}}), Package the array in the entry file into Verdors.js//new Webpack.optimize.CommonsChunkPlugin (' Vendors ', ' commons/vendors.js '),//New WEBPA Ck.optimize.CommonsChunkPlugin (//{//names: [' Vendors '],////filenames: [' vendors.js ', ' utils.js '],//filename: '/js/[name]. [Chunkhash:6].js ',//Minchunks:infinity/
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.